package com.sdwz.borrow.service;

import com.sdwz.borrow.entity.AppointmentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdwz.borrow.entity.vo.AppointmentVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 预约信息表 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-03-30
 */
public interface AppointmentInfoService extends IService<AppointmentInfo> {

    //添加预约信息
    List<Map<String,Object>> addAppointments(String userId, List<String> bookIds);

    //查看个人预约信息
    List<AppointmentVo> getAppointmentInfoByUserId(String userId);

    //分页多条件查询预约信息
    Map<String,Object> appointmentPages(Long current, Long limit, AppointmentVo appointmentVo);
}
